package qqq;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

public class www {
    public static void main(String[] args) {
    	int s=30,count=0;
    	int N=20,K=10;
    	List set = new ArrayList();
    	while(true){
    		Double num = new Double(Math.random()*10+20);
    		if(set.size()<K) {
    			set.add(num);
    		}else  break;
    		
    	
    	}
    	System.out.println(set);
    	//Double d[] = set.toArray();
    	//Iterator<Double> iterator = set.iterator();
//    	while(iterator.hasNext()){
//    		Double d = iterator.next();
//    		System.out.print(d+"  ");
//    	}
    	
    			
}
}
